package com.mybook.app.mapper;

import com.mybook.app.core.CommonMapper;
import com.mybook.app.model.BookInfo;
import com.mybook.app.model.WalletInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface WalletInfoMapper extends CommonMapper<WalletInfo> {

    public WalletInfo findWalletInfoById(@Param("id") String id);

    public Integer payWalletInfoById(@Param("payMoney") BigDecimal payMoney, @Param("id") String id);

    public Integer incomeWalletInfoById(@Param("payMoney") BigDecimal payMoney, @Param("id") String id);

}